﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="newadlist.aspx.cs" Inherits="GPCSC.Web.sjs.newadlist" %>

<%@ Register Assembly="NickLee.Web.UI" Namespace="NickLee.Web.UI" TagPrefix="NickLee" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <link type="text/css" rel="Stylesheet" href="../Css/tableCss.css" />
     <link href="../Css/main.css" rel="stylesheet" type="text/css" />
          <link type="text/css" rel="Stylesheet" href="../Css/selectCss.css" />
                <script type="text/javascript" src="../scripts/jquery-1.6.2.min.js"></script>
                      <script type="text/javascript"  src="../Scripts/jquery-ui-1.8.16.custom.min.js"> </script>
                      <link href="../Css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
                <link type="text/css" href="../Scripts/uploadify/uploadify.css" rel="Stylesheet" />
<script type="text/javascript" charset="utf-8"  src="../Scripts/uploadify/swfobject.js"></script>
<script type="text/javascript" charset="utf-8"  src="../Scripts/uploadify/jquery.uploadify.v2.1.0.min.js"></script>
        <title>淮安市领导干部下基层活动网站</title>
<meta name="KEYWords" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
<meta name="DEscription" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
    <script>
        $(document).ready(

       function () {

           // var postname = $("#postName").val();
           var postid = $("#postid").val();

           //alert(postname);

           $('#fileupload').uploadify({
               'uploader': '../Scripts/uploadify/uploadify.swf',
               'cancelImg': '../Scripts/uploadify/cancel.png',
               'script': '../fileupload.ashx?postid=' + postid,
               'folder': '../uploadfile',
               'queueID': 'fileQueue',
               'multi': true,
               'auto': true,
               'buttonImg': '../Images/fileupg.gif',
               'buttonText': '上传附件',
               'onAllComplete': function (event, data) {

                   if (data.errors == 0) {
                       alert("文件上传成功！");
                   }
                   else {
                   }

               }
           });
       }
       );
    </script>
  <script>
      function selects() {
          var sd = $("#ddlRegType ").val();
          $("#month").empty();
          if (sd == "1") {
              $("#month").append("<option value='1'>1</option>");
              $("#month").append("<option value='2'>2</option>");
              $("#month").append("<option value='3'>3</option>");
          }
          else if (sd == "2") {
              $("#month").append("<option value='4'>4</option>");
              $("#month").append("<option value='5'>5</option>");
              $("#month").append("<option value='6'>6</option>");
          }
          else if (sd == "3") {
              $("#month").append("<option value='7'>7</option>");
              $("#month").append("<option value='8'>8</option>");
              $("#month").append("<option value='9'>9</option>");
          }
          else {
              $("#month").append("<option value='10'>10</option>");
              $("#month").append("<option value='11'>11</option>");
              $("#month").append("<option value='12'>12</option>");
          }

      }
      function chec() {
          $("td[checkgroup='true']").toggleClass("hitr", "td");
      }
      $(document).ready(
      function () {
          $("#dw").click(function () {
              choice_ql();
          });
      }
      );
      function choice_ql() {
          $('#divDwList2').show('slow');
          var postid = $("#postid").val();
          var url = $('#divDwList').get(0);
          url.innerHTML = '单位列表……';
          $.get('../AJAX/seldw.ashx?postid=' + postid, function (dwData) {
              if (dwData.length == 0) { url.innerHTML = ''; return; }
              var dwList = dwData.split('#');
              if (dwList.length > 0) {
                  url.innerHTML = '';
                  for (var i = 0; i < dwList.length; i++) {
                      var dw = dwList[i].split('|');
                      url.innerHTML += '<span style="margin:0px;padding:0px;width:180px;float:left;"><input type="radio" name="rdoDw" value="' + dw[0] + '"onclick="checked_ql(this)" /><span>' + dw[1] + '</span></span>';
                  }
                  url.innerHTML += '<br/>';
              }
          });
      }
      function checked_ql(rdo) {
          if (rdo.checked) {
              $('#Text1').val(rdo.value);
              $('.dwlist').hide();
              $('.btnDiv').hide();
              $('#dw').val($('span', $(rdo).parent()).html());
          }
      }
      function tjpost() {
          var postid = $("#Text1").val();
          LCallBack.Callback(postid);
      }
      function LCallBack_onCallbackComplete() {

      }
      function offren() {
          $("#selector").dialog({
              dialogClass: "my-dialog",
              modal: true,
              width: 500,
              height: 400
          });
      }
  </script>
  <style>
  .hitr
  {
      display:none;
      }
      .style1
      {
          /*border-right: 1px solid #C1DAD7;*/border: 1px solid #C1DAD7;
          background: #F9FDFE;
          font-size: 12px;
          padding: 3px 3px 3px 3px;
          text-align: center;
          vertical-align: middle;
          color: #0161a1;
          font-style: normal;
          font-variant: normal;
          font-weight: normal;
          line-height: normal;
          font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
          height: 19px;
      }
      .style2
      {
          /*border-right: 1px solid #C1DAD7;*/border: 1px solid #C1DAD7;
          background: #F9FDFE;
          font-size: 12px;
          padding: 3px 3px 3px 3px;
          text-align: center;
          vertical-align: middle;
          color: #0161a1;
          font-style: normal;
          font-variant: normal;
          font-weight: normal;
          line-height: normal;
          font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
          height: 25px;
      }
      	.dwlist{
		position:absolute;
		left:250px;
		top:30px;
		margin-top:80px;
		width:540px;
		background:white;
		border:2px solid gray;
		background:#F9FDFE;				
		padding:0px 10px 10px 10px;
		display:none;
		font-size:14px;
	}
	.dwlist div{
		height:24px;
		line-height:24px;
		font-weight:bold;
		margin:0px;
		padding:0px;
	}
  </style>
  <script>
      $(document).ready(
         function () {
             $("#dw").click(function () {
                 choice_ql();
             });
        }
      );

         function choice_ql() {
             $('#divDwList2').show('slow');
             var postid = $("#postid").val();
             var url = $('#divDwList').get(0);
             url.innerHTML = '单位列表……';
             $.get('../AJAX/selallpost.ashx', function (dwData) {
                 if (dwData.length == 0) { url.innerHTML = ''; return; }
                 var dwList = dwData.split('#');
                 if (dwList.length > 0) {
                     url.innerHTML = '';
                     for (var i = 0; i < dwList.length; i++) {
                         var dw = dwList[i].split('|');
                         url.innerHTML += '<span style="margin:0px;padding:0px;width:180px;float:left;"><input type="radio" name="rdoDw" value="' + dw[0] + '"onclick="checked_ql(this)" /><span>' + dw[1] + '</span></span>';
                     }
                     url.innerHTML += '<br/>';
                 }
             });
         }

         function checked_ql(rdo) {
             if (rdo.checked) {
                 $('#Text1').val(rdo.value);
                 $("#postid").val(rdo.value);
                 $('.dwlist').hide();
                 $('.btnDiv').hide();
                 $('#dw').val($('span', $(rdo).parent()).html());
             }
         }

         function hidediv(no) {
             $('#divDwList' + no).hide();
         }
      function hidediv(no) {
          $('#divDwList' + no).hide();
      }
      function reloads() {
          var oWD = new ActiveXObject("Word.Application");
          var oDC = oWD.Documents.Add("", 0, 1);
          var oRange = oDC.Range(0, 1);
          var sel = document.body.createTextRange();
          sel.moveToElementText(tabcd);
          sel.select();
          sel.execCommand("Copy");
          oRange.Paste();
          oWD.Application.Visible = true;
      }
      function hz() {
          LCallBack.Callback();
      }
      function LCallBack_onCallbackComplete() {
          alert("汇总上报成功！");
      }
      function offren() {
          $("#selector").dialog({
              dialogClass: "my-dialog",
              modal: true,
              width: 500,
              height: 400
          });
      }
      function show(is) {
          $("#tr1").hide();
          $("#tr2").hide();
          $("#tr" + is).show();
          document.getElementById("types").value = is;
      }
      function ssbigin() {

          $("#selector").dialog("close");
          var lgname = $("#bts").val();

          var type = $("#types").val();
          if (type == "1") {

              var sel = $("#sels").val();
              CallBack1.Callback(type, lgname, sel);


          }
          else if (type == "2") {
              var kmon = $("#kmon").val();
              var jmon = $("#jmon").val();
              CallBack1.Callback(type, lgname, kmon, jmon);

          }
          else {
              CallBack1.Callback("0", lgname);
          }
      }
  </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="29" background="../images/1.gif"><table width="300" border="0" cellspacing="0" cellpadding="0">
      <tr>
     
        <td width="300" class="tittle">
        <input type="text" id="postName" runat="server" style=" display:none" />
        <input type="text" id="postid" runat="server"  style=" display:none"/>
        当前位置：统计表格</td>
      </tr>
    </table></td>
  </tr>
</table>
    <table class="table" border="1" class="table">
    <tr>
    <td colspan="10" style="font:  11px  Verdana, Arial, Helvetica, sans-serif; color:#0161a1; font-size:25px; font-weight:bold; text-align:center; padding-top:10px; padding-bottom:5px;  "  >
        <asp:Label ID="Label1" runat="server" Text="" style="font:  11px  Verdana, Arial, Helvetica, sans-serif; color:#0161a1; font-size:25px; font-weight:bold; text-align:center; padding-top:10px; padding-bottom:5px;  "></asp:Label>
        领导干部下基层&quot;三进三帮&quot;活动统计表 </td>
    </tr>
    <tr>
    <td class=" tdC" colspan="10">
        <div class="selects" style=" text-align:left">
<table>
<tr>
<td>
 <div id="fileQueue">
        
        </div>
</td>

<td>
<div >
请填写单位：

<input type ="text" width="50" id="dw" runat="server"    class="required" />
<input type="text" id="Text1" runat="server"  style=" display:none"  />
 <div class="dwlist" id="divDwList2" style="top:44px;">
		            <div align="right" onclick="hidediv(2)" style="cursor:pointer;">关闭&nbsp;</div>
                    <div id="divDwList" style="margin:0px;padding:0px;font-weight:normal;"></div>
                    </div>
</div>
<%--<input type="button" value="备份" class="buttonCss" />--%>

</td>
<td>
<input type="button" value="筛选" class="buttonCss" onclick="offren()" />
</td>
<td>

</td>
<td>

</td>
</tr>

</table>

</div>
    </td>
    </tr>
    <tr>
    <td colspan="10" class="tdC" style="font:  11px  Verdana, Arial, Helvetica, sans-serif; color:#0161a1; font-size:12px;  text-align:left  ">
    <input type="checkbox" onclick="chec()" />隐藏名称
    </td>
    </tr>
    </table>
 <nicklee:CallBack runat="server" ID="CallBack1" OnCallback="CallBack1_Callback" PostState="True"
            Width="100%" Height="100%" 
            LoadingPanelFadeDuration="800" LoadingPanelFadeMaximumOpacity="80">
            <Content>
                <asp:Panel ID="Panel1" runat="server">
    
    <table class="table" id="tabcd">
<tr>
 <td   rowspan="2" colspan="3" class="tdC">项目/对象</td>
    <td  colspan="<%=cout.ToString()%>" checkgroup='true' class="style1">领导干部姓名</td>
    <td rowspan="2" class="tdC">合计</td>
</tr>
<tr>
    <asp:Repeater ID="PostListS" runat="server">
    <ItemTemplate>
 <td  class="td" checkgroup='true'  style=" height:30px;"><%# DataBinder.Eval(Container.DataItem, "USERNAME")%></td>

    </ItemTemplate>
    </asp:Repeater>
</tr>
  <tr>
    <td  rowspan="4" class="tdC" >深入基层调研情况</td>
    <td  colspan="2" class="style2">下基层调研天数</td>
  <%=adds[0].ToString()%>

<%=sums[0].ToString()%>
  </tr>
  <tr>
    <td colspan="2" class="tdC">撰写民情日记及
    <br />
    调研报告篇数</td>

     <%=adds[1].ToString()%>

<%=sums[1].ToString()%>
  </tr>
  <tr>
    <td rowspan="2" class="tdC">其中</td>
    <td class="tdC">走村入户</td>

     <%=adds[2].ToString()%>

<%=sums[2].ToString()%>
  </tr>
  <tr>
    <td class="tdC">驻点住户天数</td>
      <%=adds[3].ToString()%>

<%=sums[3].ToString()%>
    
  </tr>
  <tr>
    <td rowspan="5"  class="tdC">开展大接访情况</td>
    <td colspan="2" class="tdC">公开接访天数</td>

    <%=adds[4].ToString()%>

<%=sums[4].ToString()%>
  </tr>
  <tr>
    <td colspan="2" class="tdC">接待信访件数</td>

     <%=adds[5].ToString()%>

<%=sums[5].ToString()%>
  </tr>
    <tr>
    <td colspan="2" class="tdC">已结案信访件数</td>

     <%=adds[6].ToString()%>

<%=sums[6].ToString()%>
  </tr>

  <tr>
    <td rowspan="2" class="tdC">其中</td>
    <td class="tdC">重点信访包案件数</td>
  <%=adds[7].ToString()%>

<%=sums[7].ToString()%>
  </tr>
  <tr>
    <td class="tdC">重点信访包案完成件数</td>
  <%=adds[8].ToString()%>

<%=sums[8].ToString()%>
    
  </tr>
  <tr>
    <td rowspan="5"  class="tdC" >走访慰问困难群众情况</td>
    <td  class="tdC"colspan="2">困难群众总户数</td>
  <%=adds[9].ToString()%>

<%=sums[9].ToString()%>
   
  </tr>
  <tr>
    <td  class="tdC" colspan="2">挂钩结对户数</td>
  <%=adds[10].ToString()%>

<%=sums[10].ToString()%>
 
  </tr>
  <tr>
    <td rowspan="2" class="tdC">其中</td>
    <td class="tdC">已走访户数</td>
  <%=adds[11].ToString()%>

<%=sums[11].ToString()%>
    
  </tr>
  <tr>
    <td class="tdC">已帮扶户数</td>
  <%=adds[12].ToString()%>

<%=sums[12].ToString()%>
    
  </tr>

  <tr>
    <td  class="tdC" colspan="2">慰问捐助者和累计金额（元）</td>
  <%=adds[13].ToString()%>

<%=sums[13].ToString()%>
 
  </tr>
  <tr>
    <td colspan="2" rowspan="2"  class="tdC" >召开座谈会情况</td>
    <td class="tdC">次数</td>
  <%=adds[14].ToString()%>

<%=sums[14].ToString()%>
    
  </tr>
  <tr>
    <td class="tdC">参加人次</td>
  <%=adds[15].ToString()%>

<%=sums[15].ToString()%>
 
  </tr>
  <tr>
    <td rowspan="2" colspan="2"  class="tdC" >形势政策宣讲情况</td>
    <td class="tdC">次数</td>
  <%=adds[16].ToString()%>

<%=sums[16].ToString()%>
 
  </tr>
  <tr>
    <td class="tdC">参加人次</td>
  <%=adds[17].ToString()%>

<%=sums[17].ToString()%>
  </tr>

  <tr>
    <td rowspan="2" class="tdC" >帮助基层单位解决问题</td>
    <td class="tdC" colspan="2">需要解决的合理问题</td>

     <%=adds[21].ToString()%>

<%=sums[21].ToString()%>
  </tr>
  <tr>
    <td colspan="2" class="tdC">其中已解决</td>
         <%=adds[22].ToString()%>

<%=sums[22].ToString()%>
    
  </tr>
    <tr>
    <td colspan="3" class="tdC">  参加劳动（次）</td>
  <%=adds[18].ToString()%>

<%=sums[18].ToString()%>

   
  </tr>
  <tr>
    <td colspan="3" class="tdC"  >为基层单位和群众办实事情况（件）</td>
  <%=adds[19].ToString()%>

<%=sums[19].ToString()%>
   
  </tr>
  <tr>
    <td colspan="3" class="tdC">  为基层单位扶持资金金额（元）</td>
  <%=adds[20].ToString()%>

<%=sums[20].ToString()%>

   
  </tr>
 
</table>
</asp:Panel>
            </Content>
        <ClientEvents>
            </ClientEvents>
            <LoadingPanelClientTemplate>
                <table style="width: 100%; height: 100%;" cellspacing="0" cellpadding="0" border="0"
                    bgcolor="#e0e0e0">
                    <tr style="width: 100%; height: 100%;">
                        <td style="width: 100%; height: 100%; vertical-align: middle; text-align: center;">
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tr>
                                    <td style="font-family: tahoma; font-size: 12px; text-align: center;">
                                        数据载入中...&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="font-family: tahoma; font-size: 12px; text-align: center;">
                                        <img alt="" src="../images/GreenBar.gif" border="0" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
           </LoadingPanelClientTemplate>
         </nicklee:CallBack>

<nicklee:CallBack runat="server" ID="LCallBack" OnCallback="LCallBack_Callback" PostState="True"
            Width="100%" Height="100%" 
            LoadingPanelFadeDuration="800" LoadingPanelFadeMaximumOpacity="80">
            <Content>
                <asp:Panel ID="LPanel" runat="server">
    </asp:Panel>
            </Content>
        <ClientEvents>
                <CallbackComplete EventHandler="LCallBack_onCallbackComplete" />
              <%--  <CallbackError EventHandler="LCallBack_onCallbackError" />--%>
            </ClientEvents>
            <LoadingPanelClientTemplate>
                <table style="width: 100%; height: 100%;" cellspacing="0" cellpadding="0" border="0"
                    bgcolor="#e0e0e0">
                    <tr style="width: 100%; height: 100%;">
                        <td style="width: 100%; height: 100%; vertical-align: middle; text-align: center;">
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tr>
                                    <td style="font-family: tahoma; font-size: 12px; text-align: center;">
                                        数据载入中...&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="font-family: tahoma; font-size: 12px; text-align: center;">
                                        <img alt="" src="../images/GreenBar.gif" border="0" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
           </LoadingPanelClientTemplate>
         </nicklee:CallBack>
    <div id="selector"  title="高级搜索" style="display:none" >

<table style=" width:100%; height:100%">
<tr>
<td style="text-align:right;color:#0161A1;">
领导名称：
</td>
<td>
<input type="text" id="bts" style="text-align:left" />
</td>
</tr>

<tr>
<td style="text-align:right; color:#0161A1;">
日期类型：
</td>
<td>
<%--<input type="text"  id="zzs" style="text-align:left"/>--%>
<input type="radio" name ="ra" value="0" onclick="show('1')" />按季度
<input type="radio" name ="ra" value="0" onclick="show('2')"/>按月份
<input type="text" id="types" style=" display:none" />
</td>
</tr>

<tr id="tr1" style=" display:none">
<%--<td style="text-align:right;color:#0161A1;">
内容关键字：
</td>
<td>
<input type="text" id="nrs" style="text-align:left"/>
</td>--%>
<td colspan="2" style=" text-align:center">
<select id="sels">
<option selected="selected" value="1">
第一季度
</option>
<option value="2">
第二季度
</option>
<option value="3">
第三季度
</option>
<option value ="4">
第四季度
</option>
</select>
</td>
</tr>


<tr id="tr2" style=" display:none" >
<td colspan="2" style=" text-align:center">
<input type="text" id="kmon" />月至<input type="text"  id="jmon"/>月
</td>
</tr>

<tr>
<td colspan="2" style="text-align:center"> 
<input type="button" value="开始搜索" onclick="ssbigin()" class="buttonCss" />
</td>
</tr>

</table>

</div>
    </div>
    </form>
</body>
</html>